<cfcomponent>
	<cffunction name="getnav" access="public" returntype="query" hint="returns a query of the navigation structure for a menu">
		<cfargument name="menuid" type="numeric" required="yes" hint="the id number of the menu in the database">
		
        <cfquery name="qnav" datasource="#request.dsn#">
        SELECT * FROM core_navemenuitems
        WHERE menuid = <cfqueryparam value="#menuid#" cfsqltype="cf_sql_integer">
        </cfquery>

		<cfreturn qnav>
	</cffunction>

	<cffunction name="getmenus" access="public" returntype="query" hint="Returns a query of the navigation menus">
		
        <cfquery name="qmenus" datasource="#request.dsn#">
        SELECT * FROM core_navemenus
        </cfquery>

		<cfreturn qmenus>
	</cffunction>
 
	<cffunction name="writemenu" access="public" returntype="void" hint="writes the menu to the navmenu folder">
		<cfargument name="menuid" type="numeric" required="yes" hint="the id number of the menu in the database">
		
        <cfquery name="qnav" datasource="#request.dsn#">
        SELECT * FROM core_navemenuitems
        WHERE menuid = <cfqueryparam value="#menuid#" cfsqltype="cf_sql_integer">
        </cfquery>

	<cfsavecontent variable="menuoutput">
    
    </cfsavecontent>

	</cffunction>
     
</cfcomponent>